functions in c hackerrank solution

visit shbcf.ru